﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ValidateUser.ascx.cs" Inherits="Controls_Activity_ValidateUser" %>
<asp:Panel ID="Panel1" runat="server" Style="display: none" CssClass="modalPopup" Width="300px">
    <asp:Panel ID="Panel2" runat="server" CssClass="modalPopupHeader">
        <div>&nbsp;&nbsp;&nbsp;<asp:Literal ID="literalModalPopup" runat="server"></asp:Literal></div>
    </asp:Panel>
        <div style="padding:2px; height:150px;">
            <asp:UpdatePanel runat="server" ID="UpdatePanel1">
            <ContentTemplate>
            <table cellspacing="1" class="table">
                <tr>
                    <td class="tableSubjectWidth">
                        登录名：
                    </td>
                    <td >
                        <asp:TextBox ID="tbLoginname" runat="server" CssClass="miniInput" MaxLength="36" ></asp:TextBox>
                        <ofcc:RequiredField ID="RequiredField1" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td class="tableSubjectWidth">
                        密码：<ofcc:ToolTip ID="ToolTip2" runat="server" CssClass="tip" ToolTip="只接受6位英文字母和数字" />
                    </td>
                    <td >
                        <asp:TextBox ID="tbPassword" runat="server" TextMode="Password" CssClass="miniInput" MaxLength="6"></asp:TextBox>
                        <ofcc:RequiredField ID="RequiredField2" runat="server" />
                    </td>
                </tr>
            </table>
            </ContentTemplate>
            </asp:UpdatePanel>
        </div>
        <div class="modalPopupFooter">
             <asp:LinkButton ID="btnModalPopupOK" runat="server" 
                OnClientClick="_100modalPopupHide()" onclick="btnModalPopupOK_Click" >确定</asp:LinkButton>
             <asp:LinkButton ID="btnModalPopupCancel" runat="server" 
                OnClientClick="_100modalPopupHide();return false;" >取消</asp:LinkButton>
             <p style="display:none"><ofcc:LinkButton ID="btnModalPopupNone" 
                runat="server" >None Event</ofcc:LinkButton></p>
        </div>

<asp:HiddenField ID="hfModalPopup" runat="server" />
<ajax:ModalPopupExtender runat="server" ID="modalPopup"    
    PopupControlID="Panel1" 
    PopupDragHandleControlID="Panel2"
    TargetControlID="btnModalPopupNone"
    BackgroundCssClass="modalBackground"
    BehaviorID="_10011modalPopupHide" 
    DropShadow="True"
    >    
</ajax:ModalPopupExtender>
<script type="text/javascript">
    function pageLoad() {
        $addHandler($get("<%=btnModalPopupCancel.ClientID.ToString() %>"), 'click', _10011modalPopupHide);
    }

    function _10011modalPopupHide(ev) {
        //fix firefox 
        $get('<%=Panel1.ClientID.ToString() %>').style.display = "none";
        if($get('<%=Panel1.ClientID.ToString() %>_DropShadow') != null)
            $get('<%=Panel1.ClientID.ToString() %>_DropShadow').style.display = "none";
        var divList = $$('div.modalBackground');
        divList[0].style.display = "none";
        if(ev)
            ev.preventDefault();
        var modalPopupBehavior = $find('_10011modalPopupHide');
        modalPopupBehavior.hide();
    }
</script>

</asp:Panel>